This folder includes the model code for the human energy balance model and intermediate data for replicating the main figures and analyses presented in the study "Widespread outdoor exposure to uncompensable heat stress with warming" for Communications Earth & Environment.
Folder structure is as follows
-code_sourcedata
	-figure_code 
		Fig.2 to Fig.7 are R (version 4.3.2) and NCL (version 6.6.2) scripts for replicating the main figures and analyses. Figure 1 is a schematic figure made by Adobe Illustrator 27.5. 
	-model_code
		"Model.HEMB.Gday_Outdoor_CMIP6.ncl" is the main model code for the human energy balance model, which generates 3-hourly G and daytime mean G (G^day) values using bias-corrected data of 12 CMIP6 models. 
		"Data.Outdoor_Gday_nomask.ncl" is the code to further process the G^day data of 12 CMIP6 models and generate statistical data of heat stress impacts in netCDF and csv files for making figures and analyses.
		"Data.Outdoor_ruralmasked.ncl" and "Data.Outdoor_watermasked.ncl" are the code to generate statistical data of heat stress impacts for two subpopulations, focusing on those engaged in farming and water collection, respectively.
		"Data.G-dielcycle.ncl" is the code to generate diel profiles of 3-hourly G at local solar time of those hottest grid cells that have G^day > 0 for each CMIP6 model and calculate the ensemble statistics (mainly for Fig. 7). 
	-source_data
		This folder includes all necessary data generated by above NCL scripts (model code) for making the Figures 2-7 and related analyses. 
		"~/source_data/outdoor/" includes G^day described above used in most figures; other subdirectories under source_data include necessary auxiliary data used in the figure scripts. 
   
Note: bias-corrected CMIP6 data (~15 TB) and 3-hourly G data (~5 TB) are not included in the repository, due to their large data size. They can be made available upon request. 
If you have any question, please feel free to contact Yuanchao Fan (yuanchao.fan@sz.tsinghua.edu.cn)